import App from './App'

import Vue from 'vue'

import store from './store'
import uView from "uview-ui";
import utils from "@/utils/uitls.js"
import Md5 from "js-md5"
import pinyin from '@/utils/vue-py.js'
import mixin from '@/mixin.js';
// import jWeixin from '@/utils/jweixin.js'
Vue.use(uView);
Vue.mixin(mixin);
uni.$u.config.unit = 'rpx'
Vue.prototype.$store = store
Vue.prototype.$md5 = Md5
Vue.prototype.Utils = utils //挂载工具类
Vue.prototype.pinyin = pinyin //挂载工具类
// Vue.prototype.xcxImgUrl = utils.xcxImgUrl();//小程序图片地址前缀
// Vue.prototype.jWeixin = jWeixin //挂载工具类
// 解决中onLaunch异步方法与onLoad执行顺序问题
Vue.prototype.$onLaunched = new Promise(resolve => {
    Vue.prototype.$isResolve = resolve
})


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App,
	store
})
app.$mount()
